package com.ruoyi.eduadmin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eduadmin.mapper.ItProblemTrackingRecordMapper;
import com.ruoyi.eduadmin.domain.ItProblemTrackingRecord;
import com.ruoyi.eduadmin.service.IItProblemTrackingRecordService;

/**
 * 跟踪记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-29
 */
@Service
public class ItProblemTrackingRecordServiceImpl implements IItProblemTrackingRecordService 
{
    @Autowired
    private ItProblemTrackingRecordMapper itProblemTrackingRecordMapper;

    /**
     * 查询跟踪记录
     * 
     * @param id 跟踪记录主键
     * @return 跟踪记录
     */
    @Override
    public ItProblemTrackingRecord selectItProblemTrackingRecordById(Long id)
    {
        return itProblemTrackingRecordMapper.selectItProblemTrackingRecordById(id);
    }

    /**
     * 查询跟踪记录列表
     * 
     * @param itProblemTrackingRecord 跟踪记录
     * @return 跟踪记录
     */
    @Override
    public List<ItProblemTrackingRecord> selectItProblemTrackingRecordList(ItProblemTrackingRecord itProblemTrackingRecord)
    {
        return itProblemTrackingRecordMapper.selectItProblemTrackingRecordList(itProblemTrackingRecord);
    }

    /**
     * 新增跟踪记录
     * 
     * @param itProblemTrackingRecord 跟踪记录
     * @return 结果
     */
    @Override
    public int insertItProblemTrackingRecord(ItProblemTrackingRecord itProblemTrackingRecord)
    {
        return itProblemTrackingRecordMapper.insertItProblemTrackingRecord(itProblemTrackingRecord);
    }

    /**
     * 修改跟踪记录
     * 
     * @param itProblemTrackingRecord 跟踪记录
     * @return 结果
     */
    @Override
    public int updateItProblemTrackingRecord(ItProblemTrackingRecord itProblemTrackingRecord)
    {
        return itProblemTrackingRecordMapper.updateItProblemTrackingRecord(itProblemTrackingRecord);
    }

    /**
     * 批量删除跟踪记录
     * 
     * @param ids 需要删除的跟踪记录主键
     * @return 结果
     */
    @Override
    public int deleteItProblemTrackingRecordByIds(Long[] ids)
    {
        return itProblemTrackingRecordMapper.deleteItProblemTrackingRecordByIds(ids);
    }

    /**
     * 删除跟踪记录信息
     * 
     * @param id 跟踪记录主键
     * @return 结果
     */
    @Override
    public int deleteItProblemTrackingRecordById(Long id)
    {
        return itProblemTrackingRecordMapper.deleteItProblemTrackingRecordById(id);
    }

    @Override
    public List<ItProblemTrackingRecord> selectByStudentId(Long studentId) {
        return itProblemTrackingRecordMapper.selectByStudentId(studentId);
    }
}
